//
//  MainViewController.h
//
//  Created by Sunny on 10-12-2.
//  Copyright 2010 SUNNY. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface MainViewController : UIViewController {
	//Magazine
	NSMutableArray *magazineArray;
    
    //Blog
    NSMutableDictionary *blogArray;

}

//Property
@property (nonatomic, retain) NSMutableArray *magazineArray;

@property (nonatomic, retain) NSMutableDictionary *blogArray;

//Method

- (void)httpMethodInit;

- (void)httpMagazineInit;

- (void)httpMagazineXml:(NSString *) magazineXmlUrl;

- (void)httpBlogXml:(NSString *) blogXmlUrl;

- (void)addMagazines:(NSNotification *)notif;

- (void)addMagazinesToList:(NSArray *)magazines;

- (void)magazinesError:(NSNotification *)notif;

- (void)addBlogs:(NSNotification *)notif;

- (void)addBlogsToList:(NSArray *)magazines;

- (void)blogsError:(NSNotification *)notif;


- (void)handleError:(NSError *)error;

@end
